package org.rk.core.common.bean;

import javax.validation.constraints.NotNull;

import org.rk.core.common.anno.FieldMeta;

/**
 * @author Cavion(曹仁道)
 * @类描述：
 * 2016年11月19日
 */
public class TreeBean extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@NotNull(message="树父节点不可为空")
	@FieldMeta(name="fatherCode",length=100,desc="")
	private String fatherCode;
	@NotNull(message="节点编码不可为空")
	@FieldMeta(isUnique=true,name="code",length=100,desc="")
	private String code;
	@FieldMeta(name="name",length=100,desc="")
	private String name;
	public String getFatherCode() {
		return fatherCode;
	}
	public void setFatherCode(String fatherCode) {
		this.fatherCode = fatherCode;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

}
